package org.dromara.study.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("employee_course")
public class EmployeeCourse {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 员工ID
     */
    @TableField(value = "employee_id")
    private Long employeeId;

    /**
     * 课程ID
     */
    @TableField(value = "course_id")
    private Long courseId;

    public EmployeeCourse(Long employeeId,Long courseId){
        this.employeeId = employeeId;
        this.courseId = courseId;
    }
}
